package com.mc.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mc.dao.ScienceTeacherMapper;
import com.mc.model.ScienceDirection;
import com.mc.model.ScienceDirectionWithBLOBs;
import com.mc.model.ScienceTeacher;
import com.mc.service.IScienceTeacherService;
@Service
public class ScienceTeacherServiceImpl implements IScienceTeacherService{

	
	@Autowired ScienceTeacherMapper scienceTeacherMapper;

	@Override
	public int deleteByPrimaryKey(Integer stId) {
		// TODO Auto-generated method stub
	//	System.out.println("stId----" + stId);
		
		return scienceTeacherMapper.deleteByPrimaryKey(stId);
	}

	@Override
	public int insert(ScienceTeacher record) {
		// TODO Auto-generated method stub
		return scienceTeacherMapper.insert(record);
	}

	@Override
	public int insertSelective(ScienceTeacher record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public ScienceTeacher selectByPrimaryKey(Integer stId) {
		// TODO Auto-generated method stub
		return scienceTeacherMapper.selectByPrimaryKey(stId);
	}

	@Override
	public int updateByPrimaryKeySelective(ScienceTeacher record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKey(ScienceTeacher record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<ScienceTeacher> selectbydirectionid(int id) {
		// TODO Auto-generated method stub
		return scienceTeacherMapper.selectbydirectionid(id);
	}

	@Override
	public List<ScienceTeacher> selectbydirectionfzid(int id) {
		// TODO Auto-generated method stub
		return scienceTeacherMapper.selectbydirectionfzid(id);
	}
	
}
